package com.sangmo.fts.process.storage.service;

import com.sangmo.boot.framework.data.filter.PageResult;
import com.sangmo.boot.framework.data.filter.PageSearch;
import com.sangmo.boot.framework.data.filter.ValueFilter;
import com.sangmo.boot.framework.plugin.dataview.crud.service.DelegateViewService;
import com.sangmo.boot.framework.plugin.dataview.crud.service.ViewService;
import com.sangmo.fts.process.storage.model.CsfDraft;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class CsfDraftService extends DelegateViewService<CsfDraft> {

    @Autowired
    private CsfDraftEntityService csfDraftEntityService;

    @Override
    protected ViewService<CsfDraft> getEntityService() {
        return csfDraftEntityService;
    }


    public PageResult<CsfDraft> selection(PageSearch ps) {
//        ps.getFilters().add(new ValueFilter("buyerConfirm", ValueFilter.OP_EQ, true));
        return super.search(ps);
    }
}
